import React, { FC, useState } from "react"
import { produce } from "immer"

const immerDemo: FC = () => {
  const [userInfo, setUserInfo] = useState({ name: "shuangyu", age: 21 })
  function changeAge(){
    setUserInfo(
        produce
    )
  }
  return <div>

  </div>
}
export default immerDemo
